package com.test.ssm.article.service.impl;

import com.test.ssm.article.dao.SystemUserMapper;
import com.test.ssm.article.entity.pojo.SystemUser;
import com.test.ssm.article.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemUserServiceImpl implements SystemUserService {
    @Autowired
    private SystemUserMapper systemUserMapper;

    @Override
    public SystemUser login(SystemUser user) {
        return systemUserMapper.selectByNameAndPassword(user);
    }
}
